{php $copyright = m('common')->getCopyright(true)}
<!DOCTYPE html>
<html lang="zh-cn">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>{if !empty($copyright) && !empty($copyright['title'])}{$copyright['title']}{/if}</title>
        <link rel="shortcut icon" href="{$_W['siteroot']}{$_W['config']['upload']['attachdir']}/{if !empty($_W['setting']['copyright']['icon'])}{$_W['setting']['copyright']['icon']}{else}images/global/wechat.jpg{/if}" />
        <link href="{php echo MX_SHOP_LOCAL}static/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
        <link href="{php echo MX_SHOP_LOCAL}static/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
        <link href="{php echo MX_SHOP_LOCAL}static/css/animate.css" rel="stylesheet">
        <link href="{php echo MX_SHOP_LOCAL}static/css/v3.css?v=4.1.0" rel="stylesheet">
        <link href="{php echo MX_SHOP_LOCAL}static/css/common_v3.css?v=2.0.0" rel="stylesheet">
        <link rel="stylesheet" type="text/css" href="{php echo MX_SHOP_LOCAL}static/fonts/v3/iconfont.css?v=2016070717">
        <link rel="stylesheet" type="text/css" href="{php echo MX_SHOP_LOCAL}static/fonts/iconfont.css?v=2016070717">
        <script src="{php echo MX_SHOP_LOCAL}static/fonts/v3/iconfont.js"></script>

        <script src="./resource/js/lib/jquery-1.11.1.min.js"></script>
        <script src="{php echo MX_SHOP_LOCAL}static/js/dist/jquery/jquery.gcjs.js"></script>
        <script src="./resource/js/app/util.js"></script>


        <script type="text/javascript">
            window.sysinfo = {
            {if !empty($_W['uniacid'])}'uniacid': '{$_W['uniacid']}',{/if}
            {if !empty($_W['acid'])}'acid': '{$_W['acid']}',{/if}
            {if !empty($_W['openid'])}'openid': '{$_W['openid']}',{/if}
            {if !empty($_W['uid'])}'uid': '{$_W['uid']}',{/if}
            'isfounder': {if !empty($_W['isfounder'])}1{else}0{/if},
            'siteroot': '{$_W['siteroot']}',
                    'siteurl': '{$_W['siteurl']}',
                    'attachurl': '{$_W['attachurl']}',
                    'attachurl_local': '{$_W['attachurl_local']}',
                    'attachurl_remote': '{$_W['attachurl_remote']}',
                    'module' : {'url' : '{if defined('MODULE_URL')}{MODULE_URL}{/if}', 'name' : '{if defined('IN_MODULE')}{IN_MODULE}{/if}'},
            'cookie' : {'pre': '{$_W['config']['cookie']['pre']}'},
            'account' : {php echo json_encode($_W['account'])},
            };
        </script>


        <!-- 兼容后台系统1.5.3 -->
        {if IMS_VERSION >= 1.5}
        <link href="{php echo MX_SHOP_LOCAL}static/css/we7.common.css?v=1.0.0" rel="stylesheet">
        <script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
        <script type="text/javascript" src="./resource/js/app/common.min.js?v=20170802"></script>
        <script type="text/javascript">if(util){util.clip = function(){}}</script>
        {/if}


        <script src="{php echo MX_SHOP_LOCAL}static/js/require.js"></script>

        {if IMS_VERSION > 0.8 && IMS_VERSION != '1.0.0'}
        <script src="{php echo MX_SHOP_LOCAL}static/js/config1.0.js"></script>
        {else}
        <script src="./resource/js/app/config.js"></script>
        {/if}

        <script>
            require.config({
                waitSeconds: 0
            });
        </script>
        <script src="{php echo MX_SHOP_LOCAL}static/js/myconfig.js"></script>
        <script type="text/javascript">
                if (navigator.appName == 'Microsoft Internet Explorer') {
                    if (navigator.userAgent.indexOf("MSIE 5.0") > 0 || navigator.userAgent.indexOf("MSIE 6.0") > 0 || navigator.userAgent.indexOf("MSIE 7.0") > 0) {
                        alert('您使用的 IE 浏览器版本过低, 推荐使用 Chrome 浏览器或 IE8 及以上版本浏览器.');
                    }
                }
                myrequire.path = "{$_W['siteroot']}addons/mx_shop/static/js/";

            function preview_html(txt)
            {
                var win = window.open("", "win", "width=300,height=600"); // a window object
                win.document.open("text/html", "replace");
                win.document.write($(txt).val());
                win.document.close();
            }
        </script>
    </head>

    <body>